package singleton

import "sync"

type Singleton struct{}

var (
	once 		sync.Once
	singleton 	*Singleton
)

func GetInstance() *Singleton {
	once.Do(func(){
		singleton = &Singleton{}
	})
	return singleton
}